<script>
	export default {
		onLaunch: function() {
			//console.log('App Launch');
			const token = uni.getStorageSync('hgylsstoken');
			if (!this.validate.isEmptyVal(token)) {
				//this.$store.dispatch('setHasLoginState');
				//this.loadSysUserInfo();
			}
		},
		onLoad() {},
		onHide: function() {
			// //console.log('App Hide')
		},
		data() {
			return {

			};
		},
		methods: {
			async loadSysUserInfo() {
				const res = await this.request({
					url: this.interfaces.loadSysUserInfo,
					method: 'POST'
				});
				const {
					data
				} = res;
				console.log(data)
				this.$store.dispatch('setHasLogin', data);
			}
		}
	};
</script>

<style>
	@import url('/static/iconfont/iconfont.css');
	@import url('/common/animate.min.css');
	@import url('/common/uni.css');

	.btn text {
		display: block;
		font-size: 31upx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #ffffff;
		height: 92upx;
		line-height: 92upx;
		text-align: center;
		background: linear-gradient(90deg, #014fff, #3a77ff);
		border-radius: 46upx;
	}

	.bank {
		height: 20upx;
		background-color: #f8f8f8;
	}
</style>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import 'uview-ui/index.scss';

	.item-input-text {
		display: flex;
		align-items: center;
		padding: 15upx 0;
		border-bottom: 1px solid rgba($color: #eee, $alpha: 0.5);

		>text {
			font-size: 24upx;
		}

		>view {
			flex: 1;
			margin-left: 20upx;

			/deep/uni-input {
				font-size: 24upx !important;
			}
		}
	}

	.item-input-sec {
		display: flex;
		align-items: center;
		padding: 15upx 0;
		border-bottom: 1px solid rgba($color: #eee, $alpha: 0.5);
		position: relative;

		>text {
			font-size: 24upx;
		}

		>view {
			/deep/uni-input {
				font-size: 24upx !important;
			}

			&:nth-of-type(1) {
				flex: 1;
				margin: 0 20upx;
			}

			&:nth-of-type(2) {
				color: #999;
			}
		}

		.mark {
			position: absolute;
			width: 100%;
			height: 100%;
			top: 0;
			left: 0;
			z-index: 1;
		}
	}
	.item-input-textarea{
		padding: 20upx 0;
		>text {
			font-size: 24upx;
		}
		>view{
			flex: 1;
			height: 246upx;
			background: rgba($color: #eee, $alpha: 0.5);
			border-radius: 10upx;
			margin-top: 25upx;
			padding: 20upx;
			/deep/uni-textarea {
				font-size: 24upx !important;
			}
		}
	}
	.item-input-upload {
		padding: 15upx 0;

		>view {
			margin-top: 40upx;
		}
	}
</style>
